/**  
* @Title: BookServiceImpl.java  
* @Package com.ssm.demo.service.impl.book  
* @Description: TODO(用一句话描述该文件做什么)  
* @author jing Lei 
* @date 2018年12月26日  
* @version V1.0  
*/  

package com.ssm.demo.service.impl.book;

import java.util.List;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import javax.transaction.Transactional;
import org.springframework.stereotype.Service;
import com.ssm.demo.dao.book.IBookDao;
import com.ssm.demo.model.Book;
import com.ssm.demo.service.book.IBookService;
import com.ssm.demo.service.impl.BaseServiceImpl;


/**  
* @ClassName: BookServiceImpl  
* @Description: TODO(这里用一句话描述这个类的作用)  
* @author jing Lei  
* @date 2018年12月26日  
*    
*/
@Service
@Transactional
public class BookServiceImpl extends BaseServiceImpl<Book> implements IBookService{
	
	    @Resource
		private IBookDao ibookDao;

		@PostConstruct
	    private void postConstruct(){
			baseIdo = ibookDao;
		}
		/**
	     * 
	    * <p>Title: findByTypeBookId</p>  
	    * <p>Description: 通过书籍类别id查询</p>  
	    * @param typeBookId  书籍类别id
	    * @return  数据
	    * @see com.ssm.demo.service.book.IBookService#findByTypeBookId(java.lang.String)
	     */
		@Override
		public List<Book> findByTypeBookId(int typeBookId) {
			return ibookDao.findByTypeBookId(typeBookId);
		}
        /**
         * 
        * <p>Title: findByBookName</p>  
        * <p>Description: </p>  
        * @param bookName
        * @return  数据
        * @see com.ssm.demo.service.book.IBookService#findByBookName(java.lang.String)
         */
		@Override
		public List<Book> findByBookName(String bookName) {
			return ibookDao.findByBookName(bookName);
		}
		/**
		* <p>Title: query</p>  
		* <p>Description: </p>  
		* @param queryName
		* @param queryValue
		* @return  
		* @see com.ssm.demo.service.book.IBookService#query(java.lang.String, java.lang.String)  
		*/
		/**
		* <p>Title: query</p>  
		* <p>Description: </p>  
		* @param queryName
		* @param queryValue
		* @return  
		* @see com.ssm.demo.service.book.IBookService#query(java.lang.String, java.lang.String)  
		*/  
		
		@Override
		public List<Book> query(String queryName, String queryValue) {
			return ibookDao.query(queryName, queryValue);
		}
		
}
